package com.yqwh.coder.jpush;

import java.io.Serializable;

/**
 * 推送消息
 * @author hejie
 * 2017年9月14日 上午10:25:44
 */
public class PushMessage implements Serializable{
	private static final long serialVersionUID = -4994510968667069468L;
	public static final int SEND_SUCCESS=1; //推送成功
	public static final int SEND_FAIL=2; //推送失败
	private Long id;// 主键
	private Long createrId;// 创建人id
	private Integer pushType;// 推送类型：1版本更新 2最新活动
	private String title;// 消息标题
	private String context;// 消息内容
	private String rangeType;// 设备范围:android,ios
	private String provinceId;// 省份，全部0
	private String cityId;// 地市，全部0
	private String countryId;// 区县，全部0
	private String schoolId;// 学校：全部0
	private String roleType;// 全部：1,2,3 教师1 学生2 家长3
	private Integer state;// 消息状态：0未发送 1发送成功 2发送失败
	private String returnMsg; //消息返回内容
	private String tag;// 设置标签tag发送到指定客户端 Set<String> tag仅支持不超过20个
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getCreaterId() {
		return createrId;
	}
	public void setCreaterId(Long createrId) {
		this.createrId = createrId;
	}
	public Integer getPushType() {
		return pushType;
	}
	public void setPushType(Integer pushType) {
		this.pushType = pushType;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getContext() {
		return context;
	}
	public void setContext(String context) {
		this.context = context;
	}
	public String getRangeType() {
		return rangeType;
	}
	public void setRangeType(String rangeType) {
		this.rangeType = rangeType;
	}
	public String getProvinceId() {
		return provinceId;
	}
	public void setProvinceId(String provinceId) {
		this.provinceId = provinceId;
	}
	public String getCityId() {
		return cityId;
	}
	public void setCityId(String cityId) {
		this.cityId = cityId;
	}
	public String getCountryId() {
		return countryId;
	}
	public void setCountryId(String countryId) {
		this.countryId = countryId;
	}
	public String getSchoolId() {
		return schoolId;
	}
	public void setSchoolId(String schoolId) {
		this.schoolId = schoolId;
	}
	public String getRoleType() {
		return roleType;
	}
	public void setRoleType(String roleType) {
		this.roleType = roleType;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public String getReturnMsg() {
		return returnMsg;
	}
	public void setReturnMsg(String returnMsg) {
		this.returnMsg = returnMsg;
	}
	public String getTag() {
		return tag;
	}
	public void setTag(String tag) {
		this.tag = tag;
	}
}
